package com.newtouch.bxzs.business.train.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.newtouch.bxzs.business.train.model.bo.ExaminationPaperForExaminationBO;
import com.newtouch.bxzs.common.base.model.ExaminationPaper;

/**
 * 考试试卷mapper
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021年1月27日</td>
 * <td>lanwei</td>
 * <td>Create</td>
 * </tr>
 * </table>
 * 
 * @author lanwei
 * 
 * @version 1.0.0
 * @since 1.0.0
 */
@Mapper
public interface ExaminationPaperMapper extends BaseMapper<ExaminationPaper> {

	/**
	 * 考试设置试卷列表
	 * 
	 * @param examinationId
	 * @param startPage
	 * @param endPage
	 * @return
	 */
    IPage<ExaminationPaperForExaminationBO> getExaminationPaperForExamination(
        @Param("examinationId") String examinationId, @Param("page") Page<ExaminationPaperForExaminationBO> page);
	
	/**
	 * 考试设置试卷列表总数
	 * 
	 * @param examinationId
	 * @return
	 */
	Integer getExaminationPaperForExaminationTotal(@Param("examinationId") String examinationId);

}
